<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>用户中心_{$web_name}</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="Keywords" content="用户中心" />
		<meta name="Description" content="用户中心" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<meta name="format-detection" content="telephone=no">
		<tc_include file="Public:head" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user.css" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user_common.css" />
		<style type="text/css">
			.user-right .tabmenu{margin-bottom:0}
			.q-type{float: left; margin: 10px 5px 10px 0;background-color:red;background-image:-moz-linear-gradient(-52deg,#e61616,#964949);background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,red),color-stop(1,#5cb6ef));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5cb6ef', endColorstr='#ff0000', GradientType='1');-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5cb6ef', endColorstr='#ff0000', GradientType='1');background-image:linear-gradient(-52deg,#e61616 0,#964949 100%);box-shadow:2px 15px 23px 6px rgba(0,0,0,.18);position:relative;z-index:2;width:200px;height:145px;padding:10px 20px 15px;color:#fff;z-index:99999}
			.q-type .q-price{margin-bottom:10px}
			.q-type .q-price em{font:400 18px arial}
			.q-type .q-price strong{font:400 34px arial}
			.q-type .q-limit{font-size:12px;margin-left:10px}
			.q-line{position:relative;border-top:1px dotted #fff}
			.q-range{height:36px;line-height:18px;overflow:hidden;font-size:14px;margin:10px 0}
			.q-opbtns{height:31px;margin-bottom:15px}
			.q-opbtns a.btn{padding:0;position:relative;display:block;width:200px;height:27px;line-height:23px;border:2px solid #fff;text-align:center;font-size:12px;color:#fff;background:0 0}
			.q-opbtns a.btn b{position:absolute;z-index:1;display:block;width:0;height:25px;background:rgba(255,255,255,.23);transition:all .15s ease-out}
			.q-opbtns a.btn:hover b{width:198px}
			.q-progress .progress-wrap{display:block;position:relative;float:left;width:144px;height:8px;margin-top:5px}
			.q-progress .progress-bg{display:block;position:relative;width:144px;height:8px;background:#030303;filter:alpha(opacity=14);-moz-opacity:.14;opacity:.14}
			.q-progress .progress{display:block;position:absolute;left:0;top:0;height:8px;background:#fff;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6}
			.q-progress .txt{float:right}
			.q-line i{background-image:url(/themes/wnsc/Home/Shop/images/quan-index-icons.png);background-repeat:no-repeat;position:absolute;display:block;width:10px;height:20px;top:15px;left:-20px;background-position:-88px -77px}
		</style>
	</head>

	<body>

		<tc_include file="Public:nav" />
		<div class="w990" id="content" style="background: none;">
			<div class="margin-w1210 clearfix">
				<div class="w">
					<div class="breadcrumb clearfix">
						<a href="/" class="index">首页</a> <span class="crumbs-arrow">&gt;</span> <span class="last">用户中心</span></div>
				</div>
				<div class="blank"></div>
				<tc_include file="Public:user_left" />
				<div class="user-right">
					<div class="box">
						<div class="tabmenu">
							<ul class="tab pngFix">
								<li class="first active">抵扣券</li>
							</ul>
						</div>
						<div class="alert alert-success">
							<h4>操作提示：</h4>
							<ul>
								<li>您可查看所有拥有的抵扣券详情。</li>
							</ul>
						</div>
						<foreach name="coupon_list" item="v">
                          <php>
                            $invoice=get_web_invoice();
                          	$start=date('Y.m.d',$v['time']);
                            $end=date('Y.m.d',$v['time']+60*60*24*$invoice['web_diyong']);
                            $guoqu_time=$v['time']+60*60*24*$invoice['web_diyong'];
                            $url="location='".U('shop/index',array('id'=>$v['shop_id']))."'";
                            $time=time();
                            if($time> $guoqu_time){
                               $gouqi=1;
                            }else{
                               $gouqi=0;
                            }
                          </php>
						<div class="q-type"  onclick="{$url}" <eq name="gouqi" value="1">style="background-image: linear-gradient(-52deg,#524343 0,#cac2c2 100%);"</eq>>
							<div class="q-price"><em>¥</em><strong>{$v.dikouquan}</strong><span class="q-limit">无限制</span></div>
							<div class="q-line"><i class="i1"></i></div>
							<div class="q-range">{$v.title} 
								<p style="float: right;font-size: 12px;">指定商品</p>
							</div>
							<div class="q-ops-box">
								<div class="q-opbtns">
									<a href="#none" class="btn btn-def" data-type="5"><b></b><span class="txt"><eq name="gouqi" value="1">已过期</eq><neq name="gouqi" value="1">{$start}&nbsp;至&nbsp{$end}</neq></span></a>
								</div>
							</div>
							
						</div>
						</foreach>
						
						<empty name="coupon_list">
							<style>
							/*空记录的展示*/
							.tip-box{ width: 1000px; height: 300px; margin: 50px auto 0; text-align: center;}
							.tip-box .tip-icon{ display: block; max-width: 100%; max-height: 100%; margin: 0 auto;}
							.tip-box .tip-text{ line-height: 20px; padding: 10px; font-size: 14px;}
							.tip-box .tip-text p{ height: 40px; line-height: 40px;}

							</style>
							<div class="tip-box">
								<img src="/themes/wnsc/Home/List/images/noresult.png" class="tip-icon">
								<div class="tip-text">没有符合条件的记录</div>
							</div>
						</empty>
						
						
					</div>
				</div>

			</div>
		</div>
		<div style="clear: both;"></div>

		<tc_include file="Public:footer" />

	</body>

</html>